import Vue from 'vue'
import Router from 'vue-router'
import Home from '../views/Home.vue'
import About from '../views/About.vue'
import Contact from '../views/Contact.vue'

Vue.use(Router)

const routes = [{
        path: "/",
        component: Home
    },
    {
        path: '/about',
        component: About
    },
    {
        path: '/contact',
        component: Contact
    },
]

export default new Router({
    mode: 'history',
    routes: routes // 这是简写，相当于 routes: routes
})